package com.fz.us.oa.core.entity.com;


import com.fz.us.admin.company.entity.BaseFlowEntity;
import com.fz.us.admin.dict.entity.DictItem;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * Created by ZhuChunXiao on 2017/12/5.
 * 财务模块-付款申请
 */
@Entity
@Table(name="ec_pay")
public class Pay extends BaseFlowEntity {


    private static final long serialVersionUID = -4397283912133697788L;
    /**
     * 付款事由
     */
    private DictItem type;

    /**
     * 付款金额（元）
     */
    private BigDecimal amount;

    /**
     * 支付日期
     */
    private Date payDate;

    /**
     * 支付对象
     */
    private String object;

    /**
     * 开户行
     */
    private String bank;

    /**
     * 银行账号
     */
    private String account;


    @ManyToOne(fetch = FetchType.LAZY)
    public DictItem getType() {
        return type;
    }

    public void setType(DictItem type) {
        this.type = type;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
}
